﻿using System;
namespace Pay.Core.WeiXin {
	[Serializable]
	public class weixin_token {
		public string access_token { get; set; }
		public string refresh_token { get; set; }
		public string openid { get; set; }
		/// <summary>
		/// 凭证有效时间，单位：秒
		/// </summary>
		public int expires_in { get; set; }
	}
	[Serializable]
	public class weixin_token_error {
		public int errcode { get; set; }
		public string errmsg { get; set; }
	}
	[Serializable]
	public class weixin_user_info {
		public string openid { get; set; }
		public string nickname { get; set; }
		public string sex { get; set; }
		public string province { get; set; }
		public string city { get; set; }
		public string country { get; set; }
		public string headimgurl { get; set; }
		public byte[] file_byte { get; set; }
	}
	/// <summary>
	/// 获取收货地址需要的JS参数
	/// </summary>
	[Serializable]
	public class wexin_address_js_query {
		public string app_id { get; set; }
		public string addrSign { get; set; }
		public string timeStamp { get; set; }
		public string nonceStr { get; set; }
	}
}
